package com.test.demoweb.dao;

import com.test.demoweb.entity.User;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public interface UserRepository extends ReactiveCrudRepository<User, String> {
    Mono<User> findByUsername(String username);

    Flux<User> findAllByUsername(String username);

    Mono<Long> deleteByUsername(String username);
}
